Increases test coverage. #446
Conversation
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #446 +/- ##
==========================================
+ Coverage 88.83% 91.73% +2.89%
==========================================
Files 831 830 -1
Lines 36977 36953 -24
==========================================
+ Hits 32848 33897 +1049
+ Misses 4129 3056 -1073 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
User description
Describe your changes
Increases test coverage.
Issue ticket number and link
Code checklist before requesting a review
For details on make, please see BUILD.md
Note: The CI runs all of the above and fixing things before they hit CI speeds
up the review and merge process. Thank you.
PR Type
Tests, Enhancement
Description
Added comprehensive test coverage for Higher-Kinded Type (HKT) operations in
deep_causality_topology:hkt_manifold_tests.rswith tests forPure,Foldable, andMonadtrait implementationshkt_simplicial_complex_tests.rswithFunctorandFoldabletrait tests forChainstructuresUpdated third-party dependencies with newer versions:
libcfrom 0.2.177 to 0.2.180 with comprehensive platform bindings for Unix, Linux, Cygwin, and other platformszerocopyfrom 0.8.30 to 0.8.33parquetfrom 56.2.0 to 57.1.0ccfrom 1.2.47 to 1.2.51 with refactored process spawning and enhanced debug flag handlingrustix,syn,bumpalo,wasm-bindgen, and other dependenciesEnhanced
cccrate with improved process handling and debug configuration optionsDiagram Walkthrough
File Walkthrough
4 files
mod.rs
Add complete Cygwin platform bindings and system definitionsthirdparty/crates/libc-0.2.180/src/unix/cygwin/mod.rs
for C types (
wchar_t,blkcnt_t,dev_t, etc.)stat,passwd,sockaddr,termios,ucontext_t, etc.)operations, and POSIX compliance flags
FD_CLR,FD_SET,FD_ZERO) and CPU set manipulationfunctions (pthread, socket, file I/O, etc.)
mod.rs
Add comprehensive Unix libc definitions and FFI bindingsthirdparty/crates/libc-0.2.180/src/unix/mod.rs
types (
intmax_t,size_t,pid_t, etc.)group,timeval,stat,rusage,ipv6_mreq, etc.)library functions (file I/O, process management, networking,
threading, etc.)
operating systems (Linux, macOS, BSD, Solaris, etc.)
htonl,htons,ntohl,ntohs)tool.rs
Refactor process spawning and enhance debug flag handlingthirdparty/crates/cc-1.2.51/src/tool.rs
spawnfunction call withspawn_and_wait_for_outputtosimplify child process handling
child.wait()call, nowusing
Outputstruct directlyadd_debug_flagsmethod to acceptdebug_optparameter andhandle multiple debug levels (
0,1,2,limited,full,line-directives-only)warnings_suppression_flagsmethod to returnplatform-specific warning suppression flags
Outputtype and removeReadtraitmod.rs
Add comprehensive Linux-like platform bindings and definitionsthirdparty/crates/libc-0.2.180/src/unix/linux_like/mod.rs
for socket, network, and system operations
in_addr,sockaddr,addrinfo), file operations (epoll_event), and system utilities (tm,utsname)_IO,_IOR,_IOW,_IOWR) witharchitecture-specific bit configurations
options, IP protocols, and filesystem magic numbers
(
FD_SET,FD_CLR,FD_ISSET), message handling (CMSG_*), and processstatus checking (
WIFEXITED,WTERMSIG)related to time, file operations, networking, and process management
2 files
hkt_manifold_tests.rs
Expand HKT manifold test coverage with monad and foldable testsdeep_causality_topology/tests/extensions/hkt_manifold_tests.rs
Foldable,Monad, andPuretraits fromdeep_causality_hafttest_manifold_pure()to verifyPure::purewraps values into aminimal Manifold
test_manifold_fold()to test theFoldabletrait implementationwith sum accumulation
test_manifold_bind()to test theMonadtrait implementation withvalue transformation
test_manifold_apply_via_functor()to exercise functor andapplicative code paths
test_manifold_extract_empty_panicstest with explanatory noteabout API constraints
hkt_simplicial_complex_tests.rs
Add HKT functor and foldable trait tests for coveragedeep_causality_topology/tests/extensions/hkt_simplicial_complex_tests.rs
FoldableandFunctortraits fromdeep_causality_haftmodule
operations on
ChainstructuresFunctor::fmapoperations including value doubling andtype conversion (f64 to i32)
Foldable::foldoperations including sum computation,product computation, and string concatenation
101 files